package com.qa.service;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import com.qa.pojo.Calendars;
import com.qa.pojo.Users;
import com.qa.pojo.calendar;
import com.qa.pojo.personalEvent;

public interface IEventService {
	List<personalEvent> getPersonalEventsById(int usersid);

	boolean insertMyEvents(int usersid, String title);

	int deleteMyEvents(int usersid, String title);

	boolean addMyCalendar(int usersid, String title, int allDay, String date);

	int selectThisCalendar(int usersid, String title, int allDay, String date);

	List<calendar> selectMyCalendar(int usersid);

	int deleteMyCalendar(int usersid, int id);

	int updateMyCalendarForDrop(int usersid, int id, int dayDelta);

	int updateMyCalendarForResize(int usersid, int id, int dayDelta);

	List<Users> getSubordinateById(int usersid);

	List<String> selectCurrentProject();

	boolean addMyCalendarForOne(int usersid, String date, String projectname,
			Double work_time, String work_content);

	int selectThisCalendarForOne(int usersid, String date, String projectname,
			Double work_time, String work_content);

	List<calendar> selectCalendarForOne(int id);

	List<Calendars> exportpersonevent(int usersid, String beginmonth,
			String endmonth);

	void exportDataAll(List<Calendars> eventlist, String templatePath,
			HttpServletResponse response);
}
